n,m = tuple(map(int,input().split()))
attend = set(map(int,input().split()))
all = set(range(1,n+1)) 
absent = all - attend
if len(absent)==0:
    print(0)
else:
    print(" ".join(list(map(str,sorted(absent)))))